/*
 * 
 * LegendShop 多用户商城系统
 * 
 *  版权所有,并保留所有权利。
 * 
 */
package com.legendshop.oa.model;

import java.util.Date;

import com.legendshop.dao.persistence.Column;
import com.legendshop.dao.persistence.Entity;
import com.legendshop.dao.persistence.GeneratedValue;
import com.legendshop.dao.persistence.GenerationType;
import com.legendshop.dao.persistence.Id;
import com.legendshop.dao.persistence.Table;
import com.legendshop.dao.persistence.TableGenerator;
import com.legendshop.dao.persistence.Transient;
import com.legendshop.dao.support.GenericEntity;

/**
 *用户详细表
 */
@Entity
@Table(name = "ls_usr_detail")
public class UserDetail  extends AbstractEntity implements GenericEntity<Long> {

	private static final long serialVersionUID = 2158696135441595885L;

	/** ID */
	private Long userId; 
		
	/** 用户等级 */
	private Long gradeId; 
		
	/** 用户名称 */
	private String userName; 
		
	/** 真实姓名 */
	private String realName; 
		
	/** 用户邮件 */
	private String userMail; 
		
	/** 用户地址 */
	private String userAdds; 
		
	/** 电话 */
	private String userTel; 
		
	/** 手机号码 */
	private String userMobile; 
		
	/** 用户邮编 */
	private String userPostcode; 
		
	/** qq号码 */
	private String qq; 
		
	/** 修改时间 */
	private Date modifyTime; 
		
	/** 注册时间 */
	private Date userRegtime; 
		
	/** 注册IP */
	private String userRegip; 
		
	/** 最后登录时间 */
	private Date userLasttime; 
		
	/** 最后登录IP */
	private String userLastip; 
		
	/** 备注 */
	private String userMemo; 
		
	/** M(男) or F(女) */
	private String sex; 
		
	/** 例如：2009-11-27 */
	private String birthDate; 
		
	/** 省份 */
	private Long provinceid; 
		
	/** 城市 */
	private Long cityid; 
		
	/** 地级市 */
	private Long areaid; 
		
	/** 头像图片路径 */
	private String portraitPic; 
		
	/** 婚姻状态 */
	private Long marryStatus; 
	
	private String password;//修改用的password
	
	// 从用户信息表中来
	/** The enabled. */
	private String enabled;
		
	
	public UserDetail() {
    }
		
	@Id
	@Column(name = "user_id")
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "generator")
	@TableGenerator(name = "generator", pkColumnValue = "USR_DETAIL_SEQ")
	public Long  getUserId(){
		return userId;
	} 
		
	public void setUserId(Long userId){
			this.userId = userId;
		}
		
    @Column(name = "grade_id")
	public Long  getGradeId(){
		return gradeId;
	} 
		
	public void setGradeId(Long gradeId){
			this.gradeId = gradeId;
		}
		
    @Column(name = "user_name")
	public String  getUserName(){
		return userName;
	} 
		
	public void setUserName(String userName){
			this.userName = userName;
		}
		
    @Column(name = "real_name")
	public String  getRealName(){
		return realName;
	} 
		
	public void setRealName(String realName){
			this.realName = realName;
		}
		
    @Column(name = "user_mail")
	public String  getUserMail(){
		return userMail;
	} 
		
	public void setUserMail(String userMail){
			this.userMail = userMail;
		}
		
    @Column(name = "user_adds")
	public String  getUserAdds(){
		return userAdds;
	} 
		
	public void setUserAdds(String userAdds){
			this.userAdds = userAdds;
		}
		
    @Column(name = "user_tel")
	public String  getUserTel(){
		return userTel;
	} 
		
	public void setUserTel(String userTel){
			this.userTel = userTel;
		}
		
    @Column(name = "user_mobile")
	public String  getUserMobile(){
		return userMobile;
	} 
		
	public void setUserMobile(String userMobile){
			this.userMobile = userMobile;
		}
		
    @Column(name = "user_postcode")
	public String  getUserPostcode(){
		return userPostcode;
	} 
		
	public void setUserPostcode(String userPostcode){
			this.userPostcode = userPostcode;
		}
		
    @Column(name = "qq")
	public String  getQq(){
		return qq;
	} 
		
	public void setQq(String qq){
			this.qq = qq;
		}
		
    @Column(name = "modify_time")
	public Date  getModifyTime(){
		return modifyTime;
	} 
		
	public void setModifyTime(Date modifyTime){
			this.modifyTime = modifyTime;
		}
		
    @Column(name = "user_regtime")
	public Date  getUserRegtime(){
		return userRegtime;
	} 
		
	public void setUserRegtime(Date userRegtime){
			this.userRegtime = userRegtime;
		}
		
    @Column(name = "user_regip")
	public String  getUserRegip(){
		return userRegip;
	} 
		
	public void setUserRegip(String userRegip){
			this.userRegip = userRegip;
		}
		
    @Column(name = "user_lasttime")
	public Date  getUserLasttime(){
		return userLasttime;
	} 
		
	public void setUserLasttime(Date userLasttime){
			this.userLasttime = userLasttime;
		}
		
    @Column(name = "user_lastip")
	public String  getUserLastip(){
		return userLastip;
	} 
		
	public void setUserLastip(String userLastip){
			this.userLastip = userLastip;
		}
		
    @Column(name = "user_memo")
	public String  getUserMemo(){
		return userMemo;
	} 
		
	public void setUserMemo(String userMemo){
			this.userMemo = userMemo;
		}
		
    @Column(name = "sex")
	public String  getSex(){
		return sex;
	} 
		
	public void setSex(String sex){
			this.sex = sex;
		}
		
    @Column(name = "birth_date")
	public String  getBirthDate(){
		return birthDate;
	} 
		
	public void setBirthDate(String birthDate){
			this.birthDate = birthDate;
		}
		
    @Column(name = "provinceid")
	public Long  getProvinceid(){
		return provinceid;
	} 
		
	public void setProvinceid(Long provinceid){
			this.provinceid = provinceid;
		}
		
    @Column(name = "cityid")
	public Long  getCityid(){
		return cityid;
	} 
		
	public void setCityid(Long cityid){
			this.cityid = cityid;
		}
		
    @Column(name = "areaid")
	public Long  getAreaid(){
		return areaid;
	} 
		
	public void setAreaid(Long areaid){
			this.areaid = areaid;
		}
		
    @Column(name = "portrait_pic")
	public String  getPortraitPic(){
		return portraitPic;
	} 
		
	public void setPortraitPic(String portraitPic){
			this.portraitPic = portraitPic;
		}
		
    @Column(name = "marry_status")
	public Long  getMarryStatus(){
		return marryStatus;
	} 
		
	public void setMarryStatus(Long marryStatus){
			this.marryStatus = marryStatus;
		}
	
	@Transient
	public Long getId() {
		return userId;
	}
	
	public void setId(Long id) {
		userId = id;
	}

	@Transient
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEnabled() {
		return enabled;
	}

	public void setEnabled(String enabled) {
		this.enabled = enabled;
	}
	
}